package com.google.code.jcooky.chat.commons.jrc;

public enum InfoType {
	CRITICAL(1),	INFO(2);

	private final int value;

	private InfoType(int value) {
		this.value = value;
	}

	public int getValue() {
		return value;
	}

	public static InfoType valueOf(int value) {
		switch (value) {
		case 1:
			return CRITICAL;
		case 2:
			return INFO;

		default:
			return null;
		}
	}
}
